package cn.usian.exception;

import cn.usian.common.Results;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobleException {

    @ExceptionHandler(Exception.class)
    public Results results(LesseeException e){
        e.printStackTrace();
        return Results.build(null,e.getResultEnum());
    }
}
